package com.glory.hikvisionmobile.adapter;

import android.view.View;
import android.widget.EditText;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.hikvisionmobile.R;
import com.glory.hikvisionmobile.bean.TrackOut.XGrapHiteBoatBean;

import java.util.List;

public class GraphiteBoatAdapter extends BaseQuickAdapter<XGrapHiteBoatBean, BaseViewHolder> {


    public GraphiteBoatAdapter(@Nullable List<XGrapHiteBoatBean> data) {
        super(R.layout.adapter_param_list,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, XGrapHiteBoatBean item) {
        helper.setText(R.id.tvItem1,item.getGraphiteCarrierId());
        helper.setText(R.id.tvItem2,item.getGraphiteCarrierSeq());
        EditText etPosition = helper.getView(R.id.etPosition);
        etPosition.setVisibility(View.GONE);
        helper.setText(R.id.tvItem3,item.getReleaseCarrierId());
        helper.setText(R.id.tvItem4,item.getReleaseCarrierSeq());
        helper.setText(R.id.tvItem5,item.getWaferId());
    }

}
